<?php

/**
 * Description of Event
 * @link http://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/flash/events/Event.html
 * @author Gvozd
 */
class Event {

    /**
     *
     * @var string
     */
    public $type;

    /**
     * @var EventDispatcher
     */
    public $target;

    /**
     * @var callback
     */
    public $callee;

    /**
     * @var mixed
     */
    public $params;

    /**
     *
     * @param string $type
     * @param boolean $bubbles unsupported
     * @param boolean $cancelable unsupported
     */
    public function __construct($type /*, $bubbles = false, $cancelable = false*/) {
        $this->type = $type;
    }

    /**
     *
     * @param EventDispatcher $eventTarget
     * @param callback $callee 
     */
    public function setEnvironment($eventTarget, $callee) {
        $this->target = $eventTarget;
        $this->callee = $callee;
    }

    public function setParams($params) {
        $this->params = $params;
    }

}